package com.xiangshizhineng.tianzhangzhi.app.model.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.xiangshizhineng.tianzhangzhi.app.common.base.BaseEntity;
import com.xiangshizhineng.tianzhangzhi.app.utils.LongJsonSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

@Data
@ApiModel(description = "任务实体")
@EqualsAndHashCode(callSuper = true)
public class Task extends BaseEntity implements Serializable {

  /**
   * 任务编号
   */
  @ApiModelProperty(value = "任务编号")
  private String taskNum;
  /**
   * 任务名称
   */
  @ApiModelProperty(value = "任务名称")
  private String taskName;
  /**
   * 任务类别(字典id)
   */
  @ApiModelProperty(value = "任务类别(字典id)")
  @JsonSerialize(using = LongJsonSerializer.class)
  private Long taskTypeId;
  /**
   * 责任田长
   */
  @ApiModelProperty(value = "责任田长")
  private String taskTz;
  /**
   * 巡查人id
   */
  @ApiModelProperty(value = "巡查人id")
  private Long taskXcr;
  /**
   * 巡查时间
   */
  @ApiModelProperty(value = "巡查时间")
  private Date taskTime;
  /**
   * 任务状态(任务状态)
   */
  @ApiModelProperty(value = "任务状态(任务状态)")
  @JsonSerialize(using = LongJsonSerializer.class)
  private Long taskStatusId;
  /**
   * 行政区划代码
   */
  @ApiModelProperty(value = "行政区划代码")
  private String xzqhdm;
  /**
   * 
   */
  @ApiModelProperty(value = "")
  private Date createTime;
  /**
   * 
   */
  @ApiModelProperty(value = "")
  private Date updateTime;
  /**
   * 图斑id
   */
  @ApiModelProperty(value = "图斑id")
  private String tbId;
  /**
   * shape数据
   */
  @ApiModelProperty(value = "shape数据")
  private String shape;
  /**
   * 批次
   */
  @ApiModelProperty(value = "批次")
  private String production;

}
